﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using WisdriContacts.Annotations;

namespace WisdriContacts.Model
{
    [DataContract]
    public class PERSON : INotifyPropertyChanged
    {
        [DataMember]
        public string ID { get; set; }

        [DataMember]
        public string NAME { get; set; }

        [DataMember]
        public string DEPARTMENT { get; set; }

        [DataMember]
        public string MOBILE_PHONE { get; set; }

        [DataMember]
        public string VIRTUAL_PHONE { get; set; }

        [DataMember]
        public string POSITION { get; set; }

        [DataMember]
        public string REGION { get; set; }

        [DataMember]
        public string OFFICE_PHONE { get; set; }

        [DataMember]
        public string INNER_PHONE { get; set; }

        [DataMember]
        public string PY { get; set; }

        [DataMember]
        public string CAR { get; set; }


        public event PropertyChangedEventHandler PropertyChanged;

        [NotifyPropertyChangedInvocator]
        protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}